<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			const arr = [1, 2, 3];  
			const result = Math.max(...arr);  
			console.log(result); // 3
			const [a, b, ...rest] = [1, 2, 3, 4, 5];  
			console.log(a); // 1  
			console.log(b); // 2  
			console.log(rest); // [3, 4, 5]
			console.log(">>>>>>>>>>>>>>>>>>>>>>>>>");
			var obj={a:1,b:2,c:'ffff',k:"老刘"};
			let ar={...obj};//复制克隆
			ar.a=window.prompt("");
			console.log(ar);
			console.log(obj);
			
			function add1(a,b,c){
				return a+b+c;
			}
			var a3=[1,2,300];
			var r1=add1(a3);
			alert(r1);
			var r2=add1(...a3);
			alert(r2);
		</script>
	</head>
	<body>
	</body>
</html>